﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using Dm.Domain.Entities;

namespace Dm.Domain.Entities.Configurations
{
    public class StudentConfiguration : EntityTypeConfiguration<Student>
    {
        public StudentConfiguration()
        {
            this.HasKey(s => s.EntityId);
            this.Property(s => s.EntityId).HasColumnName("StudentId");
            this.HasRequired(s => s.Status);
            this.Property(s => s.ControlNumber).HasColumnName("StudentNumber");
        }
    }
}
